package com.paradogs.gs.misc;

import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * @author: yumi
 * @date: 2025/3/28  15:51
 * @Description: TODO
 */
@Configuration
public class MybatisConfig {

//    @Bean
//    public DataSource dataSource() {
//        HikariConfig config = new HikariConfig();
//        config.setThreadFactory(Thread.ofVirtual().factory()); // 关键配置
//        DataSource dataSource = new HikariDataSource(config);
//        return dataSource;
//    }

}
